package cn.sdfykjyxgs.synclient.socket;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.client.WebSocketClient;
import org.springframework.web.socket.client.standard.StandardWebSocketClient;
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean;

import javax.annotation.PostConstruct;

@Configuration
public class WebSocketConfig {
    private WebSocketClient webSocketClient;

    @PostConstruct
    public void initWebSocketClient() {
        this.webSocketClient = new StandardWebSocketClient();
    }

    @Bean
    public WebSocketClient getWebSocketClient() {
        return webSocketClient;
    }



}
